#ifndef YHAIDA_HUBCODEC_H
#define YHAIDA_HUB_CODEC_H

#include "../../net/Buffer.h"
#include <string>
namespace pubsub
{
    enum ParseResult
    {
        kError,
        kSuccess,
        kContinue,
    };

    extern ParseResult parseMessage(yhaida::Buffer *buff,
                             std::string *cmd,
                             std::string *topic,
                             std::string *content);
}
#endif